package com.clms.maintain.utils;

import io.swagger.annotations.Api;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;

import java.text.SimpleDateFormat;
import java.util.Date;

/**
 * @program: third
 * @description: 获取当前时间变成维修编号
 * @author: 许鹏
 * @create: 2021-07-28 15:31
 **/
@ApiModel(value = "工具类",description = "设置维修编号")
public class InsertRecordId {

    @ApiModelProperty(value = "根据时间来设置维修编号")
    public static String getTimeLong(){
        Date date = new Date();
        //设置日期格式
        SimpleDateFormat time = new SimpleDateFormat("yyyyMMddHHmmss");
        String longTime1=time.format(date);
        String longTime='S'+longTime1;
        return longTime;
    }
}
